package 快乐数;

public class Test {
    public static void main(String[] args) {

        int n = 211;

        Solution solution = new Solution();

        System.out.println(solution.isHappy(n));


    }

    public static int getNewNum(int n){
        int result = 0;
        while ( n != 0){
            int num = n % 10;
            result += num*num;
            n /= 10;
        }
        return result;
    }
}
